package com.macro.mall.portal.controller;


import cn.hutool.core.convert.Convert;
import com.macro.mall.common.api.CommonResult;
import com.macro.mall.portal.domain.CommonCofig;
import com.macro.mall.portal.domain.ConsultFiles;
import com.macro.mall.portal.service.CommonCofigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author db
 * @date 2021-08-19
 */

@Api(tags = "文案配置管理")
@RestController
@RequestMapping("/commonConfig")
public class CommonCofigController {

    @Autowired
    private CommonCofigService commonCofigService;


    @ApiOperation("查询文案配置")
    @RequestMapping(value = "/list", method = RequestMethod.POST)
    public CommonResult list() {
        return CommonResult.success(commonCofigService.list());
    }


}